Repository navigation
feat(cli): name the branch first in deploy approval prompts, v0.1.33 - #215
Merged
Merged
Conversation
The PIN dialog listed each approval as app, rack, commit and message. When several
agents ask for approvals at once, the branch is what tells them apart, so each line
now starts with it: `feature/fix-login: api on staging, commit 36a302d, "Fix login"`.
The key touch prompt and its notification name it too ("approve feature/fix-login
(api on staging, 2 of 4)"): a run's later approvals ask for a touch without a PIN
dialog, such as `wait --approve` when a rack's request appears later.
The branch is cut at 80 characters so the app and rack stay inside the dialog's
160-character line, and short commits are now 7 characters.
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Nov 8, 2026 1:29a.m. | Review ↗ | |
| Go | Nov 8, 2026 1:29a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When several agents or scripts ask for deploy approvals at once, the macOS PIN dialog didn't say which branch each approval is for. It listed the app, rack, commit and message, and the message is often a generic CI line like
Deploy web 36a302d to staging. The CLI already had the branch from the request and printed it in the terminal, but the person approving usually only sees the dialog.Dialog line (before → after):
Touch prompt and notification:
A run's later approvals ask for a touch without a PIN dialog, such as
wait --approvewhen another rack's request appears later, so the notification needs the branch too.Details
approvalSummaryLineandapprovalTouch(internal/cli/deploy_approvals_summary.go) serve bothapproveandwait --approve. A request without a branch keeps the old wording, apart from the shorter commit.maxBranchRunes), so a long branch name can't push the app and rack past the dialog's 160-character line cut.shortCommitis used, including the terminal lines after approving.displayText, like the other fields.Testing:
go test ./internal/cli/passes. Two deliberate breakages confirm the new tests can fail: leaving out the branch fails five tests, and removing the 80-character cap fails the long-branch test.